require(["config"], function(){
	require(["jquery","template", "header", "footer", "carousel"], function($,template){
		$(".ban_right").carousel ({
			imgs:[
				{src:"/images/a.jpg",href:"http://localhost:8080/html/detail.html"},
				{src:"/images/a1.jpg",href:"http://localhost:8080/html/detail.html"},
				{src:"/images/a2.jpg",href:"http://localhost:8080/html/detail.html"},
				{src:"/images/a3.jpg",href:"http://localhost:8080/html/detail.html"},
				{src:"/images/a4.jpg",href:"http://localhost:8080/html/detail.html"}
			],
			width:760,
			height:348,
			isButton:false,
			isCircle:true
	});
		// 动态获取列表页面数据（模拟假数据）
		$.getJSON("http://rap2api.taobao.org/app/mock/25657/hhh", function(data){
		
			// 利用 art-template 渲染模板
			const html = template("list_temp", {SNP : data.res_body.data});
			$(".right_bottom").html(html);
	});
});
});